import java.util.Scanner;

public class demo04 {
    //打印大X
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int m=sc.nextInt();
        int n=sc.nextInt();
        char[][] arr=new char[n][n/2*2+m];
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr[i].length; j++) {
                arr[i][j]='.';
            }
        }
        for (int i = 0; i < arr.length; i++) {
            for (int j = i; j < i+m; j++) {
                arr[i][j]='*';
            }
            for (int j = arr[i].length-i-1; j > arr[i].length-1-i-m; j--) {
                arr[i][j]='*';
            }
        }
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr[i].length; j++) {
                System.out.print(arr[i][j]);
            }
            System.out.println();
        }
    }
}
